<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">HOME</h1>
    </div>
</div>

<div id="content">
    <form class="form-horizontal" method="post" action="">
        <div class="control-group" style="width: 100%;">
            <label class="control-label" for="pertanyaan">Pertanyaan</label>
            <div class="controls" style="display: inline-block; margin-left: 10px; width:80%;">
                <input style="width: 70%; border-radius: 10px; vertical-align: middle; padding-left: 14px; padding-right: 14px; background-color: #ffffff;
        border: 1px solid #cccccc; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset; transition: border 0.2s linear 0s, box-shadow 0.2s linear 0s; font-size: 14px;
        height: 35px; line-height: 20px;" type="text" id="pertanyaan" name="keyword" placeholder="Masukkan Pertanyaan" class="input-xxlarge search-query">
                <button type="submit" name="search" class="btn" style="-moz-border-bottom-colors: none; -moz-border-left-colors: none;
        -moz-border-right-colors: none; -moz-border-top-colors: none; background-color: #f5f5f5; background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);
        background-repeat: repeat-x; border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25); border-image: none; border-radius: 15;
        border-style: solid; border-width: 1px; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 1px 2px rgba(0, 0, 0, 0.05); color: #333333; cursor: pointer; display: inline-block; font-size: 14px; line-height: 20px; margin-bottom: 0; text-align: center; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
        vertical-align: middle;">Search</button>
            </div>
        </div>
        <a id="tampilkan-score" style="font-weight: bold; font-style: italic;">Tampilkan Score</a>
        <a id="sembunyikan-score" style="font-weight: bold; font-style: italic;">Sembunyikan Score</a>
    </form>
    <br/>

    <?php 
    if (!isset($_SESSION['keyword'])) {
        $_SESSION['keyword'] = '';
    }
    $_SESSION['keyword'] = isset($_POST['keyword']) ? str_replace("'", "", $_POST['keyword']) : str_replace("'", "", $_SESSION['keyword']);
    
    if (!empty($_SESSION['keyword'])) :
    ?>
    <div class="alert alert-success" style="margin-top:10px;"><?php echo $_SESSION['keyword']; ?></div>
    <?php
    endif;

    ?>
    <br/>
    <ul id="myTab" class="nav nav-tabs">
        <li class="active">
            <a href="#aturan1" data-toggle="tab" style="font-weight: bold;">Aturan 1</a>
        </li>
        <li>
            <a href="#aturan2" data-toggle="tab" style="font-weight: bold;">Aturan 2</a>
        </li>
        <li>
            <a href="#aturan3" data-toggle="tab" style="font-weight: bold;">Aturan 3</a>
        </li>
    </ul>
    <div id="myTabContent" class="tab-content">
        <div class="tab-pane fade in active" id="aturan1" style="margin-left: 10px; margin-top: 10px;">
            <?php include __DIR__ . '/qas-aturan1.php'; ?>
        </div>

        <div class="tab-pane fade" id="aturan2" style="margin-left: 10px; margin-top: 10px;">
            <?php include __DIR__ . '/qas-aturan2.php'; ?>
        </div>

        <div class="tab-pane fade" id="aturan3" style="margin-left: 10px; margin-top: 10px;">
            <?php include __DIR__ . '/qas-aturan3.php'; ?>
        </div>
    </div>
</div>
